package com.xiaoxu.base.model;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xiaoxu
 * @version 1.0
 * @description  分页查询请求参数
 * @date 2023/1/15 14:09
 */
@Data
@NoArgsConstructor
public class PageParams {
    /**
     * 当前页码默认值
     */
    public static final long DEFAULT_PAGE_CURRENT = 1L;
    /**
     * 每页记录数默认值
     */
    public static final long DEFAULT_PAGE_SIZE = 10L;

    /**
     * 当前页码
     */
    private Long pageNo = DEFAULT_PAGE_CURRENT;

    /**
     * 每页记录数默认值
     */
    private Long pageSize = DEFAULT_PAGE_SIZE;


    public PageParams(long pageNo,long pageSize){
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
